home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / cdity / ascs35.lha / ascsend / NON-MUI / IREC-Source / irec.h < prev    next >
C/C++ Source or Header  |  1995-06-19  |  3KB  |  100 lines

  1. /* irec.h */
  2.  
  3. #include <stdio.h>
  4. #include <stdarg.h>
  5. #include <stddef.h>
  6. #include <math.h>
  7. #include <dos.h>
  8. #include <dos/dostags.h>
  9. #include <time.h>
  10. #include <ctype.h>
  11. #include <stdlib.h>
  12. #include <string.h>
  13.  
  14. #include <libraries/dos.h>
  15. #include <libraries/asl.h>
  16. #include <libraries/locale.h>
  17. #include <devices/input.h>
  18. #include <devices/inputevent.h>
  19.  
  20. #include <intuition/intuition.h>
  21. #include <intuition/intuitionbase.h>
  22. #include <exec/exec.h>
  23. #include <dos/dos.h>
  24. #include <graphics/gfx.h>
  25. #include <utility/tagitem.h>
  26.  
  27. #include <workbench/icon.h>
  28. #include <workbench/startup.h>
  29. #include <workbench/workbench.h>
  30.  
  31. #include <proto/all.h>
  32. #include <clib/muimaster_protos.h>
  33.  
  34. #include <rexx/errors.h>
  35.  
  36. #include <pragmas/asl_pragmas.h>
  37. #include <pragmas/wb_pragmas.h>
  38. #include <pragmas/icon_pragmas.h>
  39. #include <pragmas/muimaster_pragmas.h>
  40. #include <pragmas/commodities_pragmas.h>
  41. #include <pragmas/gadtools_pragmas.h>
  42. #include <pragmas/utility_pragmas.h>
  43. #include <pragmas/exec_pragmas.h>
  44. #include <pragmas/graphics_pragmas.h>
  45. #include <pragmas/dos_pragmas.h>
  46. #include <pragmas/intuition_pragmas.h>
  47. #include <pragmas/gadtools_pragmas.h>
  48.  
  49.  
  50. #define STRMAXLEN 256
  51. #define IREC_VERSION "$VER: IREC 1.4 "__DATE__" "__TIME__
  52. #define RETURN_QUIT  0
  53. #define RETURN_STOP  1
  54. #define RETURN_IS_OK 2
  55. #define REC_START    1
  56. #define REC_STOP     2
  57.  
  58. struct action 
  59.        {
  60.         CxObj            *key;
  61.         CxObj            *sender;
  62.         CxObj            *translate;
  63.         UBYTE             hotkey[STRMAXLEN];           
  64.         UBYTE             file [STRMAXLEN]; 
  65.            LONG              id;
  66.        };
  67.        
  68. struct a_node
  69.        {
  70.            struct Node   an_Node;
  71.            struct action an_action;
  72.        };
  73. /*--------------------------------------------------------*/
  74.  
  75. extern struct NewBroker  newbroker;
  76. extern CxObj            *broker;  
  77. extern UBYTE             rec_file[STRMAXLEN];
  78. extern LONG              recording;
  79. extern ULONG             min_delay;
  80. extern BYTE              h_priority;
  81. extern ULONG             i_dl,i_mb;
  82. extern ULONG             rec_max,max_on;
  83. extern LONG              SigBit;
  84.  
  85. extern struct Library       *UtilityBase;
  86. extern struct Library       *IconBase;
  87. extern struct Library       *CxBase;
  88. extern struct Library       *KeymapBase;
  89.  
  90. extern void __stdargs main(int argc,char **argv);
  91. extern int            OpenBroker(int argc, char **argv);
  92. extern void           CloseBroker(void);
  93. extern struct a_node *MakeActionNode(UBYTE *key,UBYTE *file, LONG id);
  94. extern void           RemActionNode(struct a_node *node);
  95. extern int            HandleBroker(void);
  96. extern void           rec_start_f(ULONG n);
  97. extern void           rec_stop_f(UBYTE *name);
  98. extern LONG           init_recorder(void);
  99. extern void           exit_recorder(void);
  100.